package com.dlc.shop.user.common.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dlc.shop.bean.model.Order;
import com.dlc.shop.user.common.model.ShopGrowthConfig;

/**
 * 店铺成长值配置
 *
 * @author lhd
 * @date 2022-10-17 17:23:24
 */
public interface ShopGrowthConfigService extends IService<ShopGrowthConfig> {

    /**
     * 根据订单，计算可获得的成长值
     *
     * @param order       订单
     * @param totalAmount
     * @return 成长值
     */
    Integer calGrowth(Order order, double totalAmount);
}
